Bar Graphs

Contents

Bar Graphs#

The students in Ms. Ramirez’s math class have birthdays in each of the four seasons. The table below shows the four seasons, the number of students who have birthdays in each season, and the proportion (%) of students in each group. Construct a bar graph showing the percentages.

Please open the RStudio workspace below and edit the student.R script to complete the following task:

Please write R code that generates a barplot with the following properties:

    {{# params.graph_instructions }}
  • {{.}}
  • {{/ params.graph_instructions }}

Note: You should not need to use ggplot2 for this question, and you are not advised to do so, as it may interfere with the autograder.

Once you are satisfied with the plot your code generates, make sure the script file is saved in RStudio.

To submit your answer after saving it in RStudio, come back to this page and select “Save & Grade” or “Save only” at the bottom of the page.

Part 1#

Attribution#

Problem is from the OpenStax Introductory Statistics 2e textbook, licensed under the CC-BY 4.0 license.
Image representing the Creative Commons 4.0 BY license.